<%@ page import="fake.Item" %>



<div class="fieldcontain ${hasErrors(bean: itemInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="item.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${itemInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: itemInstance, field: 'qty', 'error')} ">
	<label for="qty">
		<g:message code="item.qty.label" default="Qty" />
		
	</label>
	<g:field name="qty" type="number" value="${itemInstance.qty}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: itemInstance, field: 'price', 'error')} ">
	<label for="price">
		<g:message code="item.price.label" default="Price" />
		
	</label>
	<g:field name="price" value="${fieldValue(bean: itemInstance, field: 'price')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: itemInstance, field: 'date', 'error')} ">
	<label for="date">
		<g:message code="item.date.label" default="Date" />
		
	</label>
	
</div>

<div class="fieldcontain ${hasErrors(bean: itemInstance, field: 'time', 'error')} ">
	<label for="time">
		<g:message code="item.time.label" default="Time" />
		
	</label>
	
</div>

